﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Main
{

	/// <summary>
	/// 用户表
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_userInfo", DisableSyncStructure = true)]
	public partial class TUserInfo {

		/// <summary>
		/// 主键唯一标识Id
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 数据录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 删除时间
		/// </summary>
		[JsonProperty]
		public DateTime? DelTime { get; set; }

		/// <summary>
		/// 删除用户Id
		/// </summary>
		[JsonProperty]
		public long? DelUser { get; set; }

		/// <summary>
		/// 邮箱
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string Email { get; set; }

		[JsonProperty]
		public int? FailNum { get; set; }

		[JsonProperty]
		public DateTime? FreezeTime { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "isDel")]
		public bool? IsDel { get; set; } = false;

		[JsonProperty, Column(Name = "isLogin")]
		public bool? IsLogin { get; set; }

		[JsonProperty, Column(Name = "orderNo")]
		public long? OrderNo { get; set; }

		/// <summary>
		/// 联系电话
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string Phone { get; set; }

		/// <summary>
		/// 角色Id
		/// </summary>
		[JsonProperty, Column(Name = "roleId")]
		public long? RoleId { get; set; }

		/// <summary>
		/// 用户账号
		/// </summary>
		[JsonProperty, Column(Name = "userAccount", StringLength = -2)]
		public string UserAccount { get; set; }

		/// <summary>
		/// 用户说明
		/// </summary>
		[JsonProperty, Column(Name = "userDescription", StringLength = -2)]
		public string UserDescription { get; set; }

		/// <summary>
		/// 用户名称
		/// </summary>
		[JsonProperty, Column(Name = "userName", StringLength = -2)]
		public string UserName { get; set; }

		/// <summary>
		/// 用户密码
		/// </summary>
		[JsonProperty, Column(Name = "userPwd", StringLength = -2)]
		public string UserPwd { get; set; }

	}

}
